package com.wyzz.hr.pojo.base;

import java.io.Serializable;
import java.util.Date;

import com.wyzz.hr.pojo.Employee;
import com.wyzz.hr.pojo.TrInstructor;
import com.wyzz.hr.pojo.TrOrg;

public abstract class BaseTrInstructor implements Serializable {

	public BaseTrInstructor() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseTrInstructor(String trinsId) {
		hashCode = 0x80000000;
		setTrinsId(trinsId);
		initialize();
	}

	public BaseTrInstructor(String trinsId, String troName) {
		hashCode = 0x80000000;
		setTrinsId(trinsId);
		setTrinsName(trinsName);
		initialize();
	}

	protected void initialize() {
	}

	public String getTrinsId() {
		return trinsId;
	}

	public void setTrinsId(String trinsId) {
		this.trinsId = trinsId;
		hashCode = 0x80000000;
	}

	public Integer getTrinsCat() {
		return trinsCat;
	}

	public void setTrinsCat(Integer trinsCat) {
		this.trinsCat = trinsCat;
	}

	public String getTrinsDesc() {
		return trinsDesc;
	}

	public void setTrinsDesc(String trinsDesc) {
		this.trinsDesc = trinsDesc;
	}

	public Employee getTrinsEmpId() {
		return trinsEmpId;
	}

	public void setTrinsEmpId(Employee trinsEmpId) {
		this.trinsEmpId = trinsEmpId;
	}

	public TrOrg getTrinsTroId() {
		return trinsTroId;
	}

	public void setTrinsTroId(TrOrg trinsTroId) {
		this.trinsTroId = trinsTroId;
	}

	public String getTrinsName() {
		return trinsName;
	}

	public void setTrinsName(String trinsName) {
		this.trinsName = trinsName;
	}

	public Integer getTrinsGender() {
		return trinsGender;
	}

	public void setTrinsGender(Integer trinsGender) {
		this.trinsGender = trinsGender;
	}

	public Date getTrinsBirthDate() {
		return trinsBirthDate;
	}

	public void setTrinsBirthDate(Date trinsBirthDate) {
		this.trinsBirthDate = trinsBirthDate;
	}

	public String getTrinsIdentificationNo() {
		return trinsIdentificationNo;
	}

	public void setTrinsIdentificationNo(String trinsIdentificationNo) {
		this.trinsIdentificationNo = trinsIdentificationNo;
	}

	public String getTrinsHomePhone() {
		return trinsHomePhone;
	}

	public void setTrinsHomePhone(String trinsHomePhone) {
		this.trinsHomePhone = trinsHomePhone;
	}

	public String getTrinsCurrAddr() {
		return trinsCurrAddr;
	}

	public void setTrinsCurrAddr(String trinsCurrAddr) {
		this.trinsCurrAddr = trinsCurrAddr;
	}

	public String getTrinsCurrZip() {
		return trinsCurrZip;
	}

	public void setTrinsCurrZip(String trinsCurrZip) {
		this.trinsCurrZip = trinsCurrZip;
	}

	public String getTrinsEmail() {
		return trinsEmail;
	}

	public void setTrinsEmail(String trinsEmail) {
		this.trinsEmail = trinsEmail;
	}

	public String getTrinsComments() {
		return trinsComments;
	}

	public void setTrinsComments(String trinsComments) {
		this.trinsComments = trinsComments;
	}

	public String toString() {
		return super.toString();
	}

	public Integer getTrinsSortId() {
		return trinsSortId;
	}

	public void setTrinsSortId(Integer trinsSortId) {
		this.trinsSortId = trinsSortId;
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getTrinsId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getTrinsId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof TrInstructor))
			return false;
		TrInstructor trins = (TrInstructor) obj;
		if (null == getTrinsId() || null == trins.getTrinsId())
			return false;
		else
			return getTrinsId().equals(trins.getTrinsId());
	}

	public static String REF = "TrInstructor";
	public static String PROP_TRINS_ID = "trinsId";
	public static String PROP_TRINS_NAME = "trinsName";
	public static String PROP_TRINS_DESC = "trinsDesc";
	public static String PROP_TRINS_EMPID = "trinsEmpId";
	public static String PROP_TRINS_TRO_ID = "trinsTroId";
	public static String PROP_TRINS_HOME_PHONE = "trinsHomePhone";
	public static String PROP_TRINS_IDENTIFICATION_NO = "trinsIdentificationNo";
	public static String PROP_TRINS_CURR_ADDR = "trinsCurrAddr";
	public static String PROP_TRINS_CURR_ZIP = "trinsCurrZip";
	public static String PROP_TRINS_EMAIL = "trinsEmail";
	public static String PROP_TRINS_COMMENTS = "trinsComments";
	public static String PROP_TRINS_SORT_ID = "trinsSortId";
	public static String PROP_TRINS_CAT = "trinsCat";
	public static String PROP_TRINS_Gender = "trinsGender";
	public static String PROP_BIRTHDATE_Gender = "trinsBirthDate";
	private int hashCode;
	private String trinsId;
	private Integer trinsSortId;
	private String trinsDesc;
	private Employee trinsEmpId;
	private TrOrg trinsTroId;
	private String trinsName;
	private Integer trinsGender;
	private Date trinsBirthDate;
	private String trinsIdentificationNo;
	private String trinsHomePhone;
	private String trinsCurrAddr;
	private String trinsCurrZip;
	private String trinsEmail;
	private String trinsComments;
	private Integer trinsCat;

}
